package com.boot;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@EnableConfigurationProperties({TestBean.class})
@RestController
public class TestBeanController {

    @Autowired
    private  TestBean testBean;

    @RequestMapping("/testconfig")
    public String testConfig() {
        return testBean.toString();
    }

}
